package cn.baiweigang.uu.strategy;

import cn.baiweigang.uu.model.*;

public abstract class BaseStrategy implements StrategyAction {
    /**
     * 账号信息
     */
    protected AccountInfo accountInfo;
    //执行的策略信息
    protected StrategyInfo strategyInfo;
    

    @Override
    public boolean init() {
        return true;
    }

    @Override
    public void acceptTrade(TradeInfo tradeInfo) {

    }

    @Override
    public void setAccountInfo(AccountInfo accountInfo) {
        this.accountInfo = accountInfo;
    }

    @Override
    public void priceChange(KLineInfo kLineInfo) {

    }

    @Override
    public void basisChange(BasisInfo basisInfo) {

    }

    @Override
    public void positionChange(PositionInfo positionInfo) {

    }

    @Override
    public StrategyInfo getStrategy() {
        return null;
    }

    @Override
    public boolean open() {
        return false;
    }

    @Override
    public boolean closed() {
        return false;
    }
}
